package com.xybean.action.base;

public class NavNumberPovider {

	private static String index = "index";
	private static String group = "group";
	private static String search = "search";
	private static String health = "health";
	private static String skin = "skin";
	private static String sport = "sport";
	private static String article = "article";

	public static int getnavNumber(String url) {

		if (url.contains(group)) {
			return 2;
		}
		if (url.contains(search)) {
			return 3;
		}
		if (url.contains(health)) {
			return 4;
		}
		if (url.contains(skin)) {
			return 5;
		}
		if (url.contains(sport)) {
			return 6;
		}
		if (url.contains(article)) {
			return 7;
		}
		if (url.contains(index)) {
			return 1;
		}
		return 1;
	}
}
